/**
 * 
 */
package com.nxn.core.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "t_customer")
public class Customer extends IdEntity {
	
	private String username;
	private String password;
	private String name;
	private int age;
	private int sex;
	private String email;
	private String phone;
	private long integralValid;
	private long integralSum;
	private String loginIP;
	private Timestamp registerTime;
	private Timestamp lastLoginTime;
	private Timestamp expireTime;
	private boolean locked;
	
	@Column(name="username", nullable=false, length=50, insertable=true)
	public String getUsername() {
		return username;
	}
	@Column(name = "password")
	public String getPassword() {
		return password;
	}
	@Column(name = "name")
	public String getName() {
		return name;
	}
	@Column(name = "age")
	public int getAge() {
		return age;
	}
	@Column(name = "sex")
	public int getSex() {
		return sex;
	}
	@Column(name = "email")
	public String getEmail() {
		return email;
	}
	@Column(name = "phone")
	public String getPhone() {
		return phone;
	}
	@Column(name = "integralValid")
	public long getIntegralValid() {
		return integralValid;
	}
	@Column(name = "integralSum")
	public long getIntegralSum() {
		return integralSum;
	}
	@Column(name = "loginIP")
	public String getLoginIP() {
		return loginIP;
	}
	@Column(name = "registerTime")
	public Timestamp getRegisterTime() {
		return registerTime;
	}
	@Column(name = "lastLoginTime")
	public Timestamp getLastLoginTime() {
		return lastLoginTime;
	}
	@Column(name = "expireTime")
	public Timestamp getExpireTime() {
		return expireTime;
	}
	@Column(name = "locked")
	public boolean getLocked() {
		return locked;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public void setIntegralValid(long integralValid) {
		this.integralValid = integralValid;
	}
	public void setIntegralSum(long integralSum) {
		this.integralSum = integralSum;
	}
	public void setLoginIP(String loginIP) {
		this.loginIP = loginIP;
	}
	public void setRegisterTime(Timestamp registerTime) {
		this.registerTime = registerTime;
	}
	public void setLastLoginTime(Timestamp lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public void setExpireTime(Timestamp expireTime) {
		this.expireTime = expireTime;
	}
	public void setLocked(boolean locked) {
		this.locked = locked;
	}
}